const defaultAvatarUrl = 'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0'
Page({
  data: {
    h:0
  },
  onShow(){
    const self = this;
    wx.getSystemInfo({
      success: function(res) {
        self.setData({
          h:res.windowHeight
        })
      }
    });
  },
  editProfile(){
    // 跳转到修改个人信息页面
    wx.navigateTo({
      url: '/pages/editProfile/editProfile'
    });
  },
  logout(){
    wx.clearStorageSync();
    wx.setStorageSync('logined', false)
    wx.navigateBack();
  }
})